#!coding:utf-8    相信这句大家都懂的，不解释

import tushare as ts
import pandas
import datetime
import pyAesCrypt, sys, os, six
import AESencrypter as AES
import base64
import requests
from djangoProject import settings

def ticks():
    df = ts.get_today_ticks('300331')
    print(df.head(10))

#大单
def aaa():
    # print '开始同步数据'
    # df = ts.get_day_all(day);
    # print(datetime.datetime.now().strftime('%Y%m%d'))
    # print((datetime.datetime.now()+datetime.timedelta(days=-365)).strftime('%Y%m%d'))

    # df2 = ts.get_sina_dd('600624', '2019-06-25', vol=int(1))
    # df = ts.get_today_all()
    # print(df)

    # df = ts.get_realtime_quotes('000581')
    # print(df[['code','name','price','bid','ask','time']])
    # df = ts.get_today_ticks('000581')
    # print(df.head(10))
    # requests.get("http://localhost:8083/ts/calculateDailyTick?date=1231233")

    print(settings.rds.smembers("BLACK_LIST"));

aaa()
# ticks()